<?php

namespace app\api\validation;

class Store extends \think\Validate
{
    protected $rule = [
        'thumb' => 'require',
        'name' => 'require',
        'business_start_time' => 'require',
        'business_end_time' => 'require',
        'business_license' => 'require',
        'legal_name' => 'require',
        'mobile' => 'require',
        'idcard' => 'require',
        'province' => 'require',
        'city' => 'require',
        'district' => 'require',
        'address' => 'require',
        'idcard_img_front' => 'require',
        'idcard_img_back' => 'require',
        'business_license_img' => 'require',
    ];

    protected $message = [
        'thumb.require' => '商行主图不能为空',
        'name.require' => '商行名称不能为空',
        'business_start_time.require' => '营业开始时间不能为空',
        'business_end_time.require' => '营业结束时间不能为空',
        'business_license.require' => '营业执照编号不能为空',
        'legal_name.require' => '法人不能为空',
        'mobile.require' => '联系方式不能为空',
        'idcard.require' => '身份证号不能为空',
        'province.require' => '省不能为空',
        'city.require' => '市不能为空',
        'district.require' => '区不能为空',
        'address.require' => '详细地址不能为空',
        'idcard_img_front.require' => '身份证正面图片不能为空',
        'idcard_img_back.require' => '身份证反面图片不能为空',
        'business_license_img.require' => '营业执照图片不能为空',
    ];
}